// 文章相关的放这里, 获取文章, 修改文章, 发布文章, 删除文章等等

import request from '@/utils/request'

// 1. 获取文章
export const getCategoryAPI = () => {
  return request.get('/my/cate/list')
}

// 2. 添加分类
export const addCategoryAPI = data => {
  return request.post('/my/cate/add', data)
}

// 3. /my/cate/del
export const deleteCategoryAPI = id => {
  return request.delete('/my/cate/del', { params: { id } })
}

export const updateCategoryAPI = data => {
  return request.put('/my/cate/info', data)
}
